package dj.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * UserExtend entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "user_extend", catalog = "")
public class UserExtend implements java.io.Serializable {

	// Fields

	private String id;
	private Tuser tuser;
	private String addr;
	private String email;
	private String iconcls;
	private String phone;
	private String uitheme;

	// Constructors

	/** default constructor */
	public UserExtend() {
	}

	/** minimal constructor */
	public UserExtend(String id, Tuser tuser) {
		this.id = id;
		this.tuser = tuser;
	}

	/** full constructor */
	public UserExtend(String id, Tuser tuser, String addr, String email, String iconcls, String phone, String uitheme) {
		this.id = id;
		this.tuser = tuser;
		this.addr = addr;
		this.email = email;
		this.iconcls = iconcls;
		this.phone = phone;
		this.uitheme = uitheme;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 36)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "userid", nullable = false)
	public Tuser getTuser() {
		return this.tuser;
	}

	public void setTuser(Tuser tuser) {
		this.tuser = tuser;
	}

	@Column(name = "addr", length = 200)
	public String getAddr() {
		return this.addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	@Column(name = "email", length = 100)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "iconcls", length = 100)
	public String getIconcls() {
		return this.iconcls;
	}

	public void setIconcls(String iconcls) {
		this.iconcls = iconcls;
	}

	@Column(name = "phone", length = 20)
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "uitheme", length = 50)
	public String getUitheme() {
		return this.uitheme;
	}

	public void setUitheme(String uitheme) {
		this.uitheme = uitheme;
	}

}